#!/bin/bash

if [[ -f ./lib/bsfl.sh ]]; then 
		. ./lib/bsfl.sh
	else
		echo "Library bsfl.sh not found"
fi

#Lets see if exists WGET
WGET=`whereis wget|awk '{print $2}'`
echo "wget Status:"
if [[ -n $WGET ]]; then 
		display_status OK
	else
		display_status ERROR 
fi

#lets see if exist CURL
CURL=`whereis curl|awk '{print $2}'`
echo "curl Status:"
if [[ -n $CURL ]]; then 
		display_status OK
	else
		display_status ERROR 
fi

#lets see if exist nc
NC=`whereis nc|awk '{print $2}'`
echo "netcat Status:"
if [[ -n $CURL ]]; then 
		display_status OK
	else
		display_status ERROR 
fi






#This should fail
CAL=`whereis cfrl|awk '{print $2}'`
echo "cal Status:"
if [[ -n $CAL ]]; then 
		display_status OK
	else
		display_status ERROR 
fi



